class submit:
    from DrissionPage import WebPage, ChromiumOptions
    # 创建 ChromiumOptions 实例，设置远程调试端口
    co = ChromiumOptions(9222)
    # 创建 WebPage 实例，连接到已经打开的浏览器
    page = WebPage(chromium_options=co)
    def submit(self):
        len=self.page.run_js("var a=document.getElementsByClassName('file-tr').length;return a;")
        print(len)

submit().submit()